import { Node } from "cc";
import { WaitForStartView } from "../display/WaitForStartView";

export class WaitForStart {
    public waitForStart: WaitForStartView;

    public startGame = false;

    public constructor(waitForStart: Node) {
        this.waitForStart = waitForStart.getComponent(WaitForStartView);
        this.waitForStart.click.add(() => {
            this.startGame = true;
        });
    }
}
